<?php

class Route{
	public static function getRoutes($key = NULL) {
		 
		$routes = array(
				'cadastro' 		=> array('controller' => 'HomeController', 	'method' => 'site'),
				'negocio'		=> array('controller' => 'HomeController', 	'method' => 'negocio', 'pagina' => 'indique'),
				'empresa'		=> array('controller' => 'HomeController', 	'method' => 'empresa', 'pagina' => 'indique'),
				'carreira'		=> array('controller' => 'HomeController', 	'method' => 'carreira', 'pagina' => 'indique'),
				'fundamentos'	=> array('controller' => 'HomeController', 	'method' => 'fundamentos', 'pagina' => 'indique')
		);
		 
		if(!is_null($key)){
			if(key_exists($key, $routes)){
				return $routes[$key];
			}
		}
		 
		return $routes;
	}
}

?>